#coding=utf-8

from django.db import models

class Reporter(models.Model):
    full_name = models.CharField(max_length=70, help_text='全名')

    def __unicode__(self):
        return self.full_name


class Article(models.Model):
    pub_date = models.DateTimeField(auto_now_add=True, help_text='更新时间')
    headline = models.CharField(max_length=200, help_text='行数')
    content = models.TextField(help_text='正文')
    reporter = models.ForeignKey(Reporter)

    def __unicode__(self):
        return self.headline
